package com.yonyou.pmclouds.safetyrectification.assignrecord.service.rmiimpl;

import com.alibaba.dubbo.config.annotation.Service;
import com.yonyou.pmclouds.ApplicationConsts;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.safetyrectification.assignrecord.entity.AssignRecordVO;
import com.yonyou.pmclouds.safetyrectification.assignrecord.mapper.AssignRecordMapper;
import com.yonyou.pmclouds.safetyrectification.assignrecord.service.IAssignRecordQuery;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author tanghuan
 * @date 2019/10/26
 */
@Service(interfaceClass = IAssignRecordQuery.class, version = ApplicationConsts.APPLICATION_VERSION)
public class AssignRecordQueryImpl implements IAssignRecordQuery {
    @Autowired
    private AssignRecordMapper mapper;

    @Override
    public AssignRecordVO getById(String id) throws BusinessException {
        return mapper.getById(id);
    }

    @Override
    public List<AssignRecordVO> getByPkBill(String pkBill) throws BusinessException {
        return mapper.getByPkBill(pkBill);
    }
}
